package com.gaodun.hk.service.impl;

import com.gaodun.hk.domain.entity.SmsSendRecord;
import com.gaodun.hk.domain.repository.SmsSendRecordRepository;
import com.gaodun.hk.service.SmsService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author fengyamin
 * @date 2021/02/17
 **/
@Slf4j
@Service
public class SmsServiceImpl implements SmsService {

    @Resource
    private SmsSendRecordRepository smsSendRecordRepository;

    @Override
    public Integer saveSmsMsgRecord(SmsSendRecord smsSendRecord) {
        return smsSendRecordRepository.insertSelective(smsSendRecord);
    }

    @Override
    public SmsSendRecord query(Integer id) {
        return smsSendRecordRepository.selectByPrimaryKey(id);
    }
}
